# Tanım: Genel uygulamaları açmak, pencereleri daha hızlı ve kolay yönetmkek için kullanılan tam donanımlı bir rıhtım.
# URL: https://launchpad.net/docky/
# Paketçi: halityilmaz1982
# Gerekler: gconf-sharp gkeyfile-sharp gnome-keyring-sharp librsvg libwnck mono-addins notify-sharp intltool gio-sharp
# Grup: sistem

isim=docky
surum=2.2.1.1
devir=4
kaynak=(https://launchpad.net/$isim/2.2/$surum/+download/$isim-$surum.tar.xz)

derle() {
cd $SRC/$isim-$surum

sed -i 's/dmcs/mcs/' m4/shamrock/mono.m4

sed -i 's|http://xoap.weather.com/|http://wxdata.weather.com/|
      s|http://www.weather.com/outlook/travel/businesstraveler/wxdetail/|https://weather.com/weather/today/l/|
      s|"http://www.weather.com/outlook/travel/businesstraveler/map/" + location|"https://weather.com/weather/radar/interactive/l/" + WeatherController.EncodedCurrentLocation|' \
StandardPlugins/Weather/src/Sources/WeatherChannelWeatherSource.cs
sed -i '/GoogleWeatherSource/d' StandardPlugins/Weather/src/WeatherController.cs

sed -i -e '/"Restore Files"/d' -e 's/, (o, a) => RestoreFile (f)//' StandardPlugins/Trash/src/TrashDockItem.cs

sed -i 's|".gtk-bookmarks"|".config/gtk-3.0/bookmarks"|' StandardPlugins/Bookmarks/src/BookmarksItemProvider.cs
sed -i -e '/BatteryMonitor/d' -e '/NetworkManager/d' -e '/NetworkMonitor/d' -e '/SessionManager/d' StandardPlugins/Makefile.am
sed -i '/System.Initialize/d' Docky.Services/Docky.Services/DockServices.cs
sed -i 's/NetworkConnected { get; private set; }/NetworkConnected = true;/' Docky.Services/Docky.Services/SystemService.cs

autoreconf -fi

./configure --prefix=/usr --sysconfdir=/etc \
              --disable-schemas-install \
              --with-gconf-schema-file-dir=/usr/share/gconf/schemas
make
make DESTDIR=$PKG install
}
